Skip to main content

DescribeAllEntity

Description

call the DescribeAllEntity to obtain the list information of all assets, including asset group ID, asset name, etc.

Request Method

POST

Request Path

/apsara/route/aegis/DescribeAllEntity

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
InstanceNamestringwasdsfasfdasfdsserver instance name.
Uuidstringedc897d6-xxxxx-xxxxx-xxxxx-xxxxxserver uuid.
RequestIdstring7E0618A9-D5EF-4220-9471-C42B5E92719Frequest ID of the result.
InternetIpstring101.202.20.20external network IP address.
Ipstring10.0.0.183server IP.
EntityListarray-instance list.
IntranetIpstring10.10.10.10intranet IP address.
GroupIdinteger281801group ID.

Example

Successful Response example

{
"InstanceName":"wasdsfasfdasfds",
"Uuid":"edc897d6-xxxxx-xxxxx-xxxxx-xxxxx",
"RequestId":"7E0618A9-D5EF-4220-9471-C42B5E92719F",
"InternetIp":"101.202.20.20",
"Ip":"10.0.0.183",
"EntityList":"-",
"IntranetIp":"10.10.10.10",
"GroupId":"281801"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}

title: DescribeAllGroups

DescribeAllGroups

Description

call the DescribeAllGroups interface to query all server grouping information.

Request Method

POST

Request Path

/apsara/route/Sas/DescribeAllGroups

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
LangBODYstringNozhthe language type of the request and receive message. zh: Chinese en: English
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
GroupNamestringtestserver group name.
RequestIdstring7E0618A9-D5EF-4220-9471-C42B5E92719Frequest ID of the result.
GroupsarrayNo sample value for this parameter.server grouping information.
Countinteger2the current page displays the number of data.
GroupFlaginteger1server grouping type. 0: default grouping 1: other groups
GroupIdinteger8834224server group ID.

Example

Successful Response example

{
"GroupName":"test",
"RequestId":"7E0618A9-D5EF-4220-9471-C42B5E92719F",
"Groups":"",
"Count":"2",
"GroupFlag":"1",
"GroupId":"8834224"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}